Using MATLAB to Solve Statistical Problems by Yuri A. W. Shardt

Using MATLAB to Solve Statistical Problems by Yuri A. W. Shardt

Author:Yuri A. W. Shardt
Language: eng
Format: epub
ISBN: 9783031402999
Publisher: Springer Nature Switzerland


3.2.1 Testing a Mean Against a Theoretical Value

Consider the following data

that are claimed to come from a normal distribution with a mean of 1. Set up and compute the required parameters for the hypothesis test that the two means are the same, compute the p-value, and compute the 95% confidence interval. Show that the results obtained are the same in all three cases. Set α equal to 0.05.

Before we can even solve the question, we will need to obtain the mean (mu) and standard deviation (sig) of the data set in MATLAB. This gives

>> x = [2.16, 2.71, 1.09, 0.40, 1.47, 1.13, 1.97];

>> mu=mean(x) >> mu = 1.5614

>> sig=std(x) >> sig = 0.7757

>> n=length(x) >> n = 7



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.